Person: Test AG from 1010: Create
Legal Person As Partner| name | value |
|---|---|
| partnerPersonTradeName | Test AG |
| operationsContactFamilyName | Krause |
| operationsContactGivenName | Dennis |
| operationsContactPhoneNumber | +49 9932 587741 |
| operationsContactEMailAddress | dennis.krause@example.org |
HTTP GET "/api/hs/office/persons?name=Test+AG" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "1223603d-1a3b-4e0c-a244-027585d22eb2", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
} ]
In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.
HTTP POST "/api/hs/office/persons" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
-H 'Content-Type: application/json' \
--data-binary @- <<EOF
{
"personType" : "NATURAL_PERSON",
"familyName" : "Krause",
"givenName" : "Dennis"
}
EOF
=> status: 201 CREATED 0ffa07f3-9172-4800-a308-fd961c4f4aa5
Please check first if that person already exists, if so, use it’s UUID below.
HINT: operations contacts are always connected to a partner-person, thus a person which is a holder of a partner-relation.
HTTP POST "/api/hs/office/contacts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
-H 'Content-Type: application/json' \
--data-binary @- <<EOF
{
"caption" : "Dennis Krause",
"phoneNumbers" : {
"main" : "+49 9932 587741"
},
"emailAddresses" : {
"main" : "dennis.krause@example.org"
}
}
EOF
=> status: 201 CREATED 08c5f2a0-6bbe-4e4e-9fc7-950f0c1a0d7b
Please check first if that contact already exists, if so, use it’s UUID below.
HTTP POST "/api/hs/office/relations" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
-H 'Content-Type: application/json' \
--data-binary @- <<EOF
{
"type" : "OPERATIONS",
"anchor.uuid" : "1223603d-1a3b-4e0c-a244-027585d22eb2", // Person: Test AG
"holder.uuid" : "0ffa07f3-9172-4800-a308-fd961c4f4aa5", // Person: Dennis Krause
"contact.uuid" : "08c5f2a0-6bbe-4e4e-9fc7-950f0c1a0d7b" // Contact: Dennis Krause
}
EOF
=> status: 201 CREATED 62796213-c6dd-4497-ba93-ea9264f9703d
HTTP GET "/api/hs/office/relations?relationType=OPERATIONS&personData=Krause" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "62796213-c6dd-4497-ba93-ea9264f9703d",
"anchor" : {
"uuid" : "1223603d-1a3b-4e0c-a244-027585d22eb2", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "0ffa07f3-9172-4800-a308-fd961c4f4aa5", // Person: Dennis Krause
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Dennis",
"familyName" : "Krause"
},
"type" : "OPERATIONS",
"mark" : null,
"contact" : {
"uuid" : "08c5f2a0-6bbe-4e4e-9fc7-950f0c1a0d7b", // Contact: Dennis Krause
"caption" : "Dennis Krause",
"postalAddress" : { },
"emailAddresses" : {
"main" : "dennis.krause@example.org"
},
"phoneNumbers" : {
"main" : "+49 9932 587741"
}
}
} ]
generated on 2026-07-17 01:42:24 for branch